/**
 * 
 */
package com.lemote.dao.account;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Component;

import com.lemote.entity.User;
import com.lemote.orm.hibernate.HibernateDao;

/**
 * @author wuhui
 *
 * 下午04:20:48
 */
@Component
public class UserDao extends HibernateDao<User, Long> {

	@Override
	public void delete(List<Long> ids) {
		
		String hql = "update "+ entityClass.getName()+ " e set e.status='1' where e.id in (:ids)";
		Query query = getSession().createQuery(hql).setParameterList("ids", ids);
		query.executeUpdate();
	}

	
}
